package org.cbyyx.tc.model.dto.addressRequest;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class AddressUpdateRequest {
    @NotNull(message = "地址ID不能为空")
    private Long id;

    private String receiverName;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    private String province;

    private String city;

    private String district;

    private String address;

    private Boolean isDefault;
}